package cn.edu.scau.cmi.dengshixin.simpleFactory;

import cn.edu.scau.cmi.dengshixin.factoryProduct.*;

public class MeatFactory {

	public static Meat produceMeat(String meatName) {
		Meat meat = null;
		switch(meatName) {
		case "Beaf":
			meat = new Beaf();
			break;
		case "Chicken":
			meat = new Chicken();
			break;
		case "Pork":
			meat = new Pork();
			break;
		}
		return meat;
	}
	
}
